//
//  UIImageView+XLNetworking.h
//  DrugProphet
//
//  Created by 左学良 on 16/7/21.
//  Copyright © 2016年 左学良. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIImageView+WebCache.h"

@interface UIImageView (XLNetworking)

- (void)zxl_setImageWithURL:(NSURL *)url;
- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;

- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options;

- (void)zxl_setImageWithURL:(NSURL *)url completed:(SDExternalCompletionBlock)completedBlock;

- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder completed:(SDExternalCompletionBlock)completedBlock;

- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options completed:(SDExternalCompletionBlock)completedBlock;


- (void)zxl_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDExternalCompletionBlock)completedBlock;

- (void)zxl_setImageWithPreviousCachedImageWithURL:(NSURL *)url andPlaceholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDExternalCompletionBlock)completedBlock;

- (void)zxl_setAnimationImagesWithURLs:(NSArray *)arrayOfURLs;

- (void)zxl_cancelCurrentAnimationImagesLoad;
@end
